package com.earnings.okhttputils.utils.ui.activity;

import android.support.v7.widget.LinearLayoutManager;

import com.earnings.R;
import com.earnings.okhttputils.utils.bean.ConsumptionDetailData;
import com.earnings.okhttputils.utils.god.GodAdapter.GodArrayList;
import com.earnings.okhttputils.utils.god.GodAdapter.GodBaseAdapter;
import com.earnings.okhttputils.utils.god.GodAdapter.GodViewHolder;
import com.earnings.okhttputils.utils.god.GodLeftHandBaseActivity;

/**
 * 账单详情
 * Created by Administrator on 2017/5/9 0009.
 */

public class ConsumptionDetailActivity extends GodLeftHandBaseActivity {
    private GodArrayList<ConsumptionDetailData> list = new GodArrayList<>();

    @Override
    protected int onCreateLayoutId() {
        return R.layout.activity_detail;
    }

    @Override
    protected void init() {
        setTitle("账单详情");

        setRecyclerViewLayoutManager(R.id.recyclerview, new LinearLayoutManager(this)).setAdapter(new GodBaseAdapter<ConsumptionDetailData>(R.layout.item_detail, list) {
            @Override
            public void onBind(GodViewHolder holder, int position, ConsumptionDetailData data) {
                holder.setText(R.id.name_tv, data.getName());
                holder.setImageResource(R.id.icon_img, R.mipmap.ic_loading_white_01);
            }


        });

    }


}
